#include"pile.h"
int main()/*{2, 5, 7, 1, 4, 6, 3, 8};*/
{
	TSP root = {NULL,0,0};
	TSP* proot = &root;
	/*insertion(proot,2);
	insertion(proot,5);
	insertion(proot,7);
	insertion(proot,1);
	insertion(proot,4);
	insertion(proot, 6);
	insertion(proot, 3);
	insertion(proot, 9);
	insertion(proot, 20);
	insertion(proot, 18);
	insertion(proot, 12);*/
	int arr[10] = { 3,6,10,34,5,29,1,0,34,2 };
	proot->x = arr;
	proot->top = 10;
	/*HeapSort(proot, 10);*/
	Bypile(proot, 10);
	print(proot,10);
	return 0;
}